package org.apache.dolphinscheduler.api.service;

import java.util.List;

import org.apache.dolphinscheduler.api.dto.model.ModelFileDto;
import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.ModelFile;
import org.apache.dolphinscheduler.dao.entity.User;
import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;

public interface ModelFileService extends IService<ModelFile> {

	List<ModelFile> queryModelFileByModelId(Integer modelId, Integer pid);
	
	Result<Object> uploadFile(User loginUser, Integer modelId, ModelFileDto dto, MultipartFile file);
	
	Result<Object> deleteFile(User loginUser, Integer modelId, Integer fileId);
	
	Result<Object> createFile(User loginUser, Integer modelId, ModelFileDto dto);

	Result<Object> downloadFile(User loginUser, Integer modelId);
}
